class people:
    def talk(self):
        print("hello world")

class teacher(people):
    def teach(self):
        print("上课，上课，python")

class actor(people):
    def act(self):
        print("我是演员，演戏、演戏")

zs=people()
zs.talk()


lilizong=teacher()
lilizong.talk()
lilizong.teach()


liuneng=actor()
liuneng.talk()
liuneng.act()
















# class guaishou:
#     def shout(self):
#         print("AAAAAAAA")

# class fei(guaishou):
#     def fly(self):
#         print("我能飞。。。。")

# class shui(guaishou):
#     def swim(self):
#         print("我在水里游。。。")

# class lu(guaishou):
#     def run(self):
#         print("奔跑吧，兄弟。。。")

# xiaobai=guaishou()
# xiaobai.shout()

# feishou=fei()
# feishou.shout()
# feishou.fly()

# shuishou=shui()
# shuishou.shout()
# shuishou.swim()

# lushou=lu()
# lushou.shout()
# lushou.run()




# class guaishou:
#     def kill(self):
#         print("我开始打人了")
#     def shout(self):
#         print("啊啊啊啊啊")

# class feishou(guaishou):
#     def fly(self):
#         print("我会飞")

# class shuishou(guaishou):
#     def swim(self):
#         print("我会游泳")

# xiaoGuai=guaishou()
# xiaoGuai.kill()
# xiaoGuai.shout()
# xiaoFei=feishou()
# xiaoFei.kill()
# xiaoFei.shout()
# xiaoFei.fly()
# xiaoShui=shuishou()
# xiaoShui.kill()
# xiaoShui.shout()
# xiaoShui.swim()